<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:53946/AssetService.svc?xsd=xsd5" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" />
  <xs:import schemaLocation="http://localhost:53946/AssetService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ICM" />
  <xs:import schemaLocation="http://localhost:53946/AssetService.svc?xsd=xsd6" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" />
  <xs:import schemaLocation="http://localhost:53946/AssetService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" />
  <xs:complexType name="MasBudgetSource">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgSourceId" type="xs:int" />
      <xs:element minOccurs="0" name="BgSourceTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GfmisCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LowerMasBudgetSources" nillable="true" type="tns:ArrayOfMasBudgetSource" />
      <xs:element minOccurs="0" name="MasBudgetSourceType" nillable="true" type="tns:MasBudgetSourceType" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="UpperBgSourceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpperMasBudgetSource" nillable="true" type="tns:MasBudgetSource" />
      <xs:element minOccurs="0" name="UsePetition" type="xs:boolean" />
      <xs:element minOccurs="0" name="UseRequest" type="xs:boolean" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="YearType" nillable="true" type="q1:YearType" />
      <xs:element minOccurs="0" name="YearTypeId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBudgetSource" nillable="true" type="tns:MasBudgetSource" />
  <xs:complexType name="ArrayOfMasBudgetSource">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasBudgetSource" nillable="true" type="tns:MasBudgetSource" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasBudgetSource" nillable="true" type="tns:ArrayOfMasBudgetSource" />
  <xs:complexType name="MasBudgetSourceType">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgSourceTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBudgetSourceType" nillable="true" type="tns:MasBudgetSourceType" />
  <xs:complexType name="ProjectExpense">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgExpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgSourceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MasBudgetExpense" nillable="true" type="tns:MasBudgetExpense" />
      <xs:element minOccurs="0" name="MasBudgetSource" nillable="true" type="tns:MasBudgetSource" />
      <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ICM" minOccurs="0" name="MasResourceItem" nillable="true" type="q2:MasResourceItem" />
      <xs:element minOccurs="0" name="Mtef1" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="Mtef2" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="Mtef3" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="ProjExpId" type="xs:int" />
      <xs:element minOccurs="0" name="ProjId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Project" nillable="true" type="tns:Project" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remark" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ResItemId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="TotalAmount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="TotalAmountOutPlan" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="UnitPrice" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="UnitQty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProjectExpense" nillable="true" type="tns:ProjectExpense" />
  <xs:complexType name="MasBudgetExpense">
    <xs:sequence>
      <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" minOccurs="0" name="Account" nillable="true" type="q3:MasAccount" />
      <xs:element minOccurs="0" name="AccountId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgExpGrpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgExpGrpIdReal" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgExpId" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GfmisCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IcmResourceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="IcmResourceType" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LowerMasBudgetExpense" nillable="true" type="tns:ArrayOfMasBudgetExpense" />
      <xs:element minOccurs="0" name="MasBudgetExpenseGroup" nillable="true" type="tns:MasBudgetExpenseGroup" />
      <xs:element minOccurs="0" name="MasBudgetExpenseGroupReal" nillable="true" type="tns:MasBudgetExpenseGroup" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="UpperBgExpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpperMasBudgetExpense" nillable="true" type="tns:MasBudgetExpense" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBudgetExpense" nillable="true" type="tns:MasBudgetExpense" />
  <xs:complexType name="ArrayOfMasBudgetExpense">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasBudgetExpense" nillable="true" type="tns:MasBudgetExpense" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasBudgetExpense" nillable="true" type="tns:ArrayOfMasBudgetExpense" />
  <xs:complexType name="MasBudgetExpenseGroup">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgExpGrpId" type="xs:int" />
      <xs:element minOccurs="0" name="BgmExpGrpX" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgmSourceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GfmisCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBudgetExpenseGroup" nillable="true" type="tns:MasBudgetExpenseGroup" />
  <xs:complexType name="Project">
    <xs:sequence>
      <xs:element minOccurs="0" name="AltProjId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateEnd" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateStart" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GfmisCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="JobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="JobSiteIdMain" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjId" type="xs:int" />
      <xs:element minOccurs="0" name="ProjMngId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ProjectDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ProjectObject" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectPlan" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectReasons" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectRemarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectScope" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ProjectTarget" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="StratListId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Project" nillable="true" type="tns:Project" />
  <xs:complexType name="ProjectOperationExpense">
    <xs:sequence>
      <xs:element minOccurs="0" name="Amount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjExpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ProjOperExpId" type="xs:int" />
      <xs:element minOccurs="0" name="ProjOperId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ProjectExpense" nillable="true" type="tns:ProjectExpense" />
      <xs:element minOccurs="0" name="ProjectOperation" nillable="true" type="tns:ProjectOperation" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RemainAmount" type="xs:decimal" />
      <xs:element minOccurs="0" name="UnitPrice" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="UnitQty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProjectOperationExpense" nillable="true" type="tns:ProjectOperationExpense" />
  <xs:complexType name="ProjectOperation">
    <xs:sequence>
      <xs:element minOccurs="0" name="AttendCount" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="EmpId" nillable="true" type="xs:int" />
      <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="Employee" nillable="true" type="q4:Employee" />
      <xs:element minOccurs="0" name="EndDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="IsUse" nillable="true" type="xs:string" />
      <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="JobSite" nillable="true" type="q5:JobSite" />
      <xs:element minOccurs="0" name="JobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ProjOperDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ProjOperId" type="xs:int" />
      <xs:element minOccurs="0" name="Project" nillable="true" type="tns:Project" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Scope" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="StartDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="WorkPlace" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProjectOperation" nillable="true" type="tns:ProjectOperation" />
</xs:schema>